<?
if(isset($_POST['users'])) {
    $users = explode(',', trim($_POST['users'], ','));

    //$bsoft = intval($_POST['bsoft']);
    $bhard =  intval($_POST['bhard']);

    //if ($bsoft>$bhard) {
    //	$bhard = $bsoft;
    //}

    $bsoft = $bhard;

    foreach ($users as $u) {
            exec('/usr/sbin/quotatool -u '.$u.' -bq '.$bsoft.'M -l '.$bhard.'M /');
    }
}

?>
